package com.xyz.controller;

import com.xyz.service.TestService;
import com.xyz.util.dto.DataResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

/*
    private static final Logger logger = LoggerFactory.getLogger(TestController.class);

    @Autowired
    private TestService testService;

    @RequestMapping("selectTest")
    public DataResult selectTest() {
        try {
            return testService.selectTest();
        } catch (Exception e) {
            logger.error("selectTest", e);
            return DataResult.build9500();
        }
    }

    @RequestMapping("insertTest")
    public DataResult insertTest() {
        try {
            return testService.insertTest();
        } catch (Exception e) {
            logger.error("insertTest", e);
            return DataResult.build9500();
        }
    }

    @RequestMapping("updateTest")
    public DataResult updateTest() {
        try {
            return testService.updateTest();
        } catch (Exception e) {
            logger.error("updateTest", e);
            return DataResult.build9500();
        }
    }

    @RequestMapping("deleteTest")
    public DataResult deleteTest() {
        try {
            return testService.deleteTest();
        } catch (Exception e) {
            logger.error("deleteTest", e);
            return DataResult.build9500();
        }
    }
*/

}
